/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.DataEntity;

import javax.validation.constraints.NotNull;

/**
 * 支付类型Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class PayType extends DataEntity<PayType> {
	
	private static final long serialVersionUID = 1L;
	private Integer typeId;		// type_id
	private String typeName;		// 类型名称
	private Integer parent;		// 父类型ID
	private Integer sonSum;		// 含子类型数
	private String loanType;		// 借贷关系（1—借 -1—贷 0—其他）
	private Integer sortNo;		// 排序
	
	public PayType() {
		super();
	}

	//public ApiPayType(String id){
	//	this.id = id;
	//}

	@NotNull(message="type_id不能为空")
	@ExcelField(title="type_id", align=2, sort=0)
	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}
	
	@ExcelField(title="类型名称", align=2, sort=1)
	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	
	@NotNull(message="父类型ID不能为空")
	@ExcelField(title="父类型ID", align=2, sort=2)
	public Integer getParent() {
		return parent;
	}

	public void setParent(Integer parent) {
		this.parent = parent;
	}
	
	@NotNull(message="含子类型数不能为空")
	@ExcelField(title="含子类型数", align=2, sort=3)
	public Integer getSonSum() {
		return sonSum;
	}

	public void setSonSum(Integer sonSum) {
		this.sonSum = sonSum;
	}
	
	@ExcelField(title="借贷关系（1—借 -1—贷 0—其他）", align=2, sort=4)
	public String getLoanType() {
		return loanType;
	}

	public void setLoanType(String loanType) {
		this.loanType = loanType;
	}
	
	@NotNull(message="排序不能为空")
	@ExcelField(title="排序", align=2, sort=5)
	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}
	
}